#ifdef WX_PRECOMP
#include "wx_pch.h"
#else
#include <wx/wx.h>
#endif //WX_PRECOMP

#include "component_type_description.h"

const wxString ComponentTypeDescription::GetName(ComponentType type)
{
  switch(type)
  {
  case TYPE_CHASSIS:
    return _("Chassis");

  case TYPE_MOTIVATOR:
    return _("Engine");

  case TYPE_LASER_WEAPON:
    return _("Laser weapon");

  case TYPE_ROCKET_WEAPON:
    return _("Rocket weapon");

  case TYPE_DEFENCE:
    return _("Defense");

  case TYPE_DISCOVERY:
    return _("Discovery");

  case TYPE_TRANSPORT:
    return _("Transport");

  case TYPE_SPECIAL:
    return _("Special");

  case TYPE_UNKNOW:
  default:
    return _("Other");
  }
}

const ComponentTypeDescription::ComponentTypeVector ComponentTypeDescription::GetComponentTypeVector(bool includeChassis)
{
  ComponentTypeVector vec;
  if (includeChassis)
  {
    vec.push_back(TYPE_CHASSIS);
  }
  vec.push_back(TYPE_MOTIVATOR);
  vec.push_back(TYPE_LASER_WEAPON);
  vec.push_back(TYPE_ROCKET_WEAPON);
  vec.push_back(TYPE_DEFENCE);
  vec.push_back(TYPE_DISCOVERY);
  vec.push_back(TYPE_TRANSPORT);
  vec.push_back(TYPE_SPECIAL);
  vec.push_back(TYPE_UNKNOW);
  return vec;
}
